import {ref, watch} from "vue";
export default function useTitle(titleValue) {
    let title = ref(titleValue)
    document.title = title.value
    watch(title,()=>{
        document.title = title.value
    })
    return title
}